package sy.service.impl;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import sy.dao.AppAccountVerificatCodeDaoI;
import sy.model.AppAccountVerificatCode;
import sy.service.AppAccountVerificatCodeServiceI;
@Service("appAccountVerificatCodeService")
public class AppAccountVerificatCodeServiceImpl implements AppAccountVerificatCodeServiceI{
	private static final Logger logger = Logger.getLogger(AppAccountVerificatCode.class);
	private AppAccountVerificatCodeDaoI appAccountVerificatCodeDao;
	
	public AppAccountVerificatCodeDaoI getAppAccountVerificatCodeDao() {
		return appAccountVerificatCodeDao;
	}
	@Autowired
	public void setAppAccountVerificatCodeDao(
			AppAccountVerificatCodeDaoI appAccountVerificatCodeDao) {
		this.appAccountVerificatCodeDao = appAccountVerificatCodeDao;
	}

	@Override
	public Serializable save(AppAccountVerificatCode appAccountVerificatCode) {
		// TODO Auto-generated method stub
		return appAccountVerificatCodeDao.save(appAccountVerificatCode);
	}
	@Override
	public boolean judgeTelephoneIsExist(String telephone) {
		// TODO Auto-generated method stub
		return appAccountVerificatCodeDao.judgeTelephoneIsExist(telephone);
	}
	@Override
	public Serializable updateAppAccountVerificatCode(String telephone, String verificatCode,
			Date creatTime) {
		// TODO Auto-generated method stub
		return appAccountVerificatCodeDao.updateAppAccountVerificatCode(telephone, verificatCode, creatTime);
	}
	@Override
	public List<AppAccountVerificatCode> getAppAccountVerificatCode(
			String telephone, String verificatCode) {
		// TODO Auto-generated method stub
		return appAccountVerificatCodeDao.getAppAccountVerificatCode(telephone, verificatCode);
	}
	
	
	
}
